
<ul>
	[#if pagination.list??] [#list pagination.list as giftLists]
	<li [#if giftLists_index%5 ==4]style="margin-right:0px;"[/#if]>
		<p onclick="window.open('/integral/giftDetail/${giftLists.giftInfo.id!}')" style="cursor:pointer;" target="_blank">
			<img alt="${giftLists.giftInfo.giftName!}"
				src="[#if (giftLists.giftInfo.imgUrl!)?index_of(';')>0]${giftLists.giftInfo.imgUrlArr[0]!}[#else]${giftLists.giftInfo.imgUrl!}[/#if]" />
		</p>
		<div style="height: auto;">
			<h6 style="width: 190px;"><a class="ell" href="/integral/giftDetail/${giftLists.giftInfo.id!}" target="_blank" title="${giftLists.giftInfo.giftName!}">${giftLists.giftInfo.giftName!}</a></h6>
			<h6 style="margin-top: 15px;height: auto;">
				市场价：<s>￥${giftLists.giftInfo.giftPrice!}</s>
			</h6>
			<a href="/integral/giftDetail/${giftLists.giftInfo.id!}"><button type="button">${giftLists.giftInfo.integralNum!}积分兑换</button></a>
			<!-- <span style="margin-bottom: 0px;">${giftLists.exchangeSum!0}人兑换</span> -->
		</div>
	</li> [/#list] [/#if]
</ul>
<div id="page" />
<script src="/res/js/common/jquery.ellipsis.js"></script>

<script type="text/javascript">
$(function(){
	 $("a.ell").each(function(){
         $(this).ellipsis({maxWidth:120,maxLine:2});
     });
	var pageinfo={pages:${pagination.totalPage!},last:${pagination.totalPage!},curr:${pagination.pageNo!},minPoint:${pagination.params['so_minPoint']!},maxPoint:${pagination.params['so_maxPoint']!}};
	 //显示分页
   laypage({
		cont : 'page',
		pages: pageinfo.pages, //总页数,总页数为1的时候不显示分页
       first:1,
       last:pageinfo.last,
       curr:pageinfo.curr,
       jump: function(obj, first) {
           if(!first) {
           	 $(".gift").load("/integral/ajaxIntegralShop",{'pageNo':obj.curr,'so_minPoint' : pageinfo.minPoint,'so_maxPoint' : pageinfo.maxPoint},function(data){});
           }
       }
	});
})
</script>